﻿@{
    ViewBag.Title = "Application";
}

<pre>
window.App = Ember.Application.create({
    rootElement: '视图事件监听元素'
  , customEvents: {
        // 视图事件
        'loadedmetadata': "loadedMetadata"
    }

  , LOG_TRANSITIONS: true // basic logging of successful transitions
  , LOG_TRANSITIONS_INTERNAL: true // detailed logging of all routing steps
});

// 额外的初始化
Ember.Application.initializer({
  name: "store",

  initialize: function(container, application) {
    container.register('store:main', application.Store);
  }
});
</pre>
